Describes the state of all managed threads in the process.
Maximum number of worker threads per CPU * number of CPUs This is configurable in machine.config under "processmodel, maxWorkerThreads"
ThreadPool
Displays the common language runtime threadpool state.
Syntax
!ThreadPool
Parameters
None
Example
0:001> !ThreadPool
CPU utilization 9%
Worker Thread: Total: 2 Running: 2 Idle: 2 MaxLimit: 50 MinLimit: 2
Work Request in Queue: 0
--------------------------------------
Number of Timers: 0
--------------------------------------
Completion Port Thread: Total: 4 Free: 1 MaxFree: 4 CurrentLimit: 4 MaxLimit: 50 MinLimit: 2
Comments
Description
Sample Value
Corresponding threads in !Threads table below
Comment
CPU Utilization
9%
N/A
Worker Thread:
Total
2
9, 13
Total number of active worker threads
Running
2
9, 13
Number of worker threads executing requests
Idle
2
9, 13
Number of waiting worker threads
MaxLimit
50
N/A
MinLimit
2
N/A
Minimum number of available worker threads required to start executing a
request.
Timers
0
N/A
Completion Port Thread:
Total
4
1, 8, 4, 11
Total number of active completion port threads.
Free
1
8
Number of free completion port threads.
Max Free
4
N/A
Current Limit
4
N/A
Max Limit
50
N/A
Maximum number of completion port threads per CPU * number of CPUs.
Min Limit
2
N/A
Minimum number of available completion port threads required to
start executing a request.
0:001> !threads
ThreadCount: 6
UnstartedThread: 0
BackgroundThread: 6
PendingThread: 0
DeadThread: 0
PreEmptive GC Alloc Lock
ID ThreadOBJ State GC Context Domain Count APT Exception
1 70 00150c98 200a220 Enabled 010a513c:010a6228 001a57b8 1 MTA
8 e5c 0015e338 b220 Enabled 00000000:00000000 00150718 0 MTA (Finalizer)
9 e90 00164ba8 1800220 Enabled 0108c3cc:0108e1f0 00150718 0 MTA (Threadpool Worker)
4 4cc 001ad5f0 2000220 Enabled 010abc64:010ac228 001a57b8 1 MTA
11 e38 001d6598 2000220 Enabled 051a69e4:051a6fa8 001a57b8 1 MTA
13 98c 0020e8b8 1800220 Enabled 0519f574:051a0fa8 00150718 0 MTA (Threadpool Worker)